package pub.gll.onepeas.libbase.track.api

import android.view.View
import pub.gll.onepeas.libbase.track.api.IViewExposure
import java.util.*

/**
 * <pre>
 *     author : whg
 *     e-mail : guanhuawei@kkworld.com
 *     time   : 2021/07/14
 *     desc   :
 *     version: 1.0
 * </pre>
 */
open class IViewExposureImp : IViewExposure {
    /**
     * view曝光时机
     * @param view 当前可见view
     * @param count Int 曝光次数
     * @param params view绑定的业务数据
     */
    override fun onViewVisible(view: View?, count: Int, params: HashMap<String, Any>?) {
    }

    /**
     * view隐藏时机
     * @param view 当前不可见view
     * @param count Int 曝光次数
     * @param duration Long 曝光时间
     * @param params view绑定的业务数据
     */
    override fun onViewInVisible(
        view: View?,
        count: Int,
        duration: Long,
        params: HashMap<String, Any>?
    ) {
    }
}